package com.hong.spring.common.event;

import org.springframework.context.ApplicationListener;

/**
 * @Auther: csh
 * @Date: 2020/7/9 17:14
 * @Description:负责处理类UserEvent消息
 */
public class UserEventHandler implements ApplicationListener<UserEvent> {
    public void onApplicationEvent(UserEvent event) {
        System.out.println(event.toString());
    }
}
